<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}
if($configname == "list")
{
	if($configblock == "where")
	{
		// 是否开启语言
		if($configinfo['langok'])
		{
			if(moduleaqvarval('lang','string'))
			{
				$where .= " AND lang = '".moduleaqvarval('lang','string')."'";// 多语言	
			}
		}
	}
	
	if($configblock == "delete")
	{
		deletemoduleparameter($goods_id,"goods","ecs_goods","goods_id","goods");
	}
}

if($configname == "detail")
{
	$datamodule = "goods";
	$dataid = 0;
	$datatable = "ecs_goods";
	$dataidname = "goods_id";
	
	// 多语言配置
	if($setblock == "insert" || $setblock == "update")
	{
		$dataid = $goods_id;
		require(MODULEPARA_PATH . '/modulepara-'.VERSION_NUMBER.'/modulepara/expconfigdetaillang.php');
	}
	//-END
	
	if($setblock == "edit")
	{
		$dataid = moduleaqvarval('goods_id','intval');
	}	
	
	if($setblock == "insert" || $setblock == "update")
	{		
		$dataid = $goods_id;
	}
	
	require(MODULEPARA_PATH . '/modulepara-'.VERSION_NUMBER.'/modulepara/expconfigdetail.php');
}
?>